package com.yangcangclub.banner.service;

import java.util.List;
import java.util.Map;

/**
 * Created by Administrator on 2017/2/23 0023.
 */
public interface BannerService {

    /**
     * 保存轮播图
     * @return
     */
    public boolean saveBanner(String name,String url,String image,
                              String startDate,String endDate,int createUserId);

    /**
     * 更新
     * @param id
     * @param name
     * @param image
     * @param url
     * @param startDate
     * @param endDate
     * @return
     */
    public boolean editBanner(int id, String name, String image, String url,String startDate,String endDate);

    /**
     * 删除
     * @param ids
     * @return
     */
    public boolean deleteBanner(String ids);

    /**
     * 移动
     * @param id
     * @param type
     * @param orderSort
     * @return
     */
    public  boolean moveBanner(int id,String type,int orderSort);

    /**
     * 发布&取消发布
     * @param id
     * @param status
     * @return
     */
    public  boolean updateBannerPublishStatus(int id,int status,int pubUserId,String pubUserName);

    /**
     * 获得前端显示的列表
     * @return
     */
    public  Map<String,Object>  getShowBannerList(int pageNum,int pageSize);

    /** 后台获取信息分页列表*/
    public Map<String,Object> getManagerBannerList(int pageNum, int pageSize,String search) ;

}
